package com.mx.kn.cstf2.service.impl;

import java.sql.SQLException;

import kn.cstf2.transition.Bean.TransitionBean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mx.kn.cstf2.dao.CopDao;
import com.mx.kn.cstf2.dao.TransitionDao;
import com.mx.kn.cstf2.service.CopService;
import com.mx.kn.cstf2.service.TransitionService;

@Service
public class CopServiceImpl implements CopService{
	@Autowired TransitionDao transitionDao;
	@Autowired CopDao copDao;

	@Override
	public TransitionBean updateReportingTransition(TransitionBean transition)
			throws SQLException {
		copDao.updateReportingTransition(transition);
		return transitionDao.obtenerTransitionBeanByKnkeyAndId(transition);
	}

	@Override
	public TransitionBean updateScopeOfServiceTransition(TransitionBean transition)
			throws SQLException {
		copDao.updateScopeOfServiceTransition(transition);
		return transitionDao.obtenerTransitionBeanByKnkeyAndId(transition);
	}

}
